package logic.courseSelect_logic;

import java.util.ArrayList;
import java.util.List;

import logicsv.courseSelect_logicsv.CourseSelectLogicsv;
import po.CourseAssistPO;
import po.CourseBasicPO;
import po.CoursePublishPO;
import resultmessage.CourseSelectRM;
import vo.CourseListVO;
import vo.CourseVO;

public class CourseSelectLogicController implements CourseSelectLogicsv{
	private CourseSelect selector = new CourseSelect();

	@Override
	public CourseSelectRM select(String courseID, String studentID) {
		// TODO Auto-generated method stub
		return selector.select(courseID, studentID);
	}

	@Override
	public CourseSelectRM drop(String courseID, String studentID) {
		// TODO Auto-generated method stub
		return selector.drop(courseID, studentID);
	}

	@Override
	public void courseArrange() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public CourseSelectRM selectSecond(String courseID, String studentID) {
		// TODO Auto-generated method stub
		return CourseSelectRM.SUCCESS;
	}

	@Override
	public CourseSelectRM addCouStuScoRec(String courseID, String studentID) {
		// TODO Auto-generated method stub
		return CourseSelectRM.SUCCESS;
	}

	@Override
	public CourseSelectRM deleteCouStuScoRec(String courseID, String studentID) {
		// TODO Auto-generated method stub
		return CourseSelectRM.SUCCESS;
	}
	
	
	public CourseListVO getCourseList(String campus,String collegeID,String department,String semester){
		List<String> courseList = new ArrayList<String>();
		courseList.add("0000001");
		return new CourseListVO(courseList);
		
	}
//	public CourseVO getCourseDetail(String courseID){
//		String teacherID = "001";
//		CourseBasicPO courseBasicPO =new CourseBasicPO(courseID,"ruan",1,2,"xiianlin","12345",200);
//		CoursePublishPO coursePublishPO = new CoursePublishPO(courseID,teacherID,"1,2","xian2");
//		CourseAssistPO courseAssistPO = new CourseAssistPO(courseID, "duodushu", "ruangong1", "thinking in java");
//		return new CourseVO(courseBasicPO,coursePublishPO,courseAssistPO);
//		
//	}
//	
	

}
